package com.lago.homework2.exercise3;

public abstract class OptiClass {
    private double mouthFee;

    public OptiClass() {
    }

    public OptiClass(double mouthFee) {
        //this.mouthFee = mouthFee;
        setMouthFee(mouthFee);
    }

    public double getMouthFee() {
        return mouthFee;
    }

    public void setMouthFee(double mouthFee) {
        if (mouthFee >= 0) {
            this.mouthFee = mouthFee;
        }else {
            System.out.println("月租不合理呀！");
        }
    }
    public abstract void show();
}
